// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@TABEXPPANEL}}-tab-exp-panel/\{{spinalCase ctrl.codeName}}-tab-exp-panel-model.ts.hbs生成
import { ITabExpPanelModel } from "@/core";

function getModel(): ITabExpPanelModel {
    return {
        name: "{{ctrl.name}}",
        caption: "{{ctrl.editItemCaption}}",
        codeName: "{{ctrl.codeName}}",
        controlType: '{{ctrl.controlType}}',
        cssName: "{{#if ctrl.psSysCss}}{{ctrl.psSysCss.cssName}}{{/if}}",
        tabs: [
            {{#each ctrl.psControls as | item |}}
            {{> @macro/widgets/tab-exp-panel-detail/tab-exp-panel-item.hbs item=item}}
            {{/each}}
        ],
        {{> @macro/common/counter.hbs page=ctrl}}
    }
}
export const model = getModel();
